package cookinmaddy.database.spod;


/**
 * ...
 * @author Yog
 */
 
 import cookinmaddy.model.Ingredient;


class DBIngredient extends php.db.Object
{
	public var value : Ingredient ;
	public var ing_id : Int;
	public var ing_name : String;
	static var TABLE_NAME = "ingredient";
	static var TABLE_IDS = ["ing_id"];
	static var PRIVATE_FIELDS = ["value"];	
	
	public static var DROP_REQUEST = "drop table " + TABLE_NAME + ";";
	public static var CREATION_REQUEST_V1 = "create table " + TABLE_NAME + " " +
	"( " +	
		"ing_id integer not null primary key ," +
		"ing_name  varchar(50) not null" +
	");";
	public static var manager = new DBIngredientManager();
}